<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>

<?php echo $layout_for_common;?>

<script>
	$(document).ready(function(){
	});
</script>

</head>
<body>
	<div id="wrap">
		<form action="<?php echo admin_url('site/update');?>" method="post">
			<div class="tabs">
				<ul>
					<li><a href="#tabs-shop">商城设置</a></li>
					<li><a href="#tabs-email">邮件设置</a></li>
					<li><a href="#tabs-database">数据库设置</a></li>
					<li><a href="#tabs-custom">自定义设置</a></li>
				</ul>
				<!-- 商城设置 -->
				<div id="tabs-shop">
					<table class="form">
						<?php
							foreach ($shop_site_list as $row)
							{
						?>
						<tr>
							<td width="100" valign="top"><?php echo $row['description'];?></td>
							<td><?php echo $row['html'];?></td>
						</tr>
						<?php
							}
						?>
						<tr>
							<td colspan="2"><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
				</div>

				<!-- 邮件设置 -->
				<div id="tabs-email">
					<table class="form">
						<?php
							foreach ($email_site_list as $row)
							{
						?>
						<tr>
							<td width="100" valign="top"><?php echo $row['description'];?></td>
							<td><?php echo $row['html'];?></td>
						</tr>
						<?php
							}
						?>
						<tr>
							<td colspan="2"><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
				</div>

				<!-- 数据库设置 -->
				<div id="tabs-database">
					<table class="form">
						<?php
							foreach ($database_site_list as $row)
							{
						?>
						<tr>
							<td width="100" valign="top"><?php echo $row['description'];?></td>
							<td><?php echo $row['html'];?></td>
						</tr>
						<?php
							}
						?>
						<tr>
							<td colspan="2"><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
				</div>

				<!-- 自定义设置 -->
				<div id="tabs-custom">
					<table class="form">
						<?php
							foreach ($custom_site_list as $row)
							{
						?>
						<tr>
							<td width="100" valign="top"><?php echo $row['description'];?></td>
							<td><?php echo $row['html'];?></td>
						</tr>
						<?php
							}
						?>
						<tr>
							<td colspan="2"><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
				</div>
			</div>
		</form>
	</div>
</body>
</html>